package com.jeason.blogmpg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统配置表
 * </p>
 *
 * @author jeason
 * @since 2021-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_system_config")
@ApiModel(value="SystemConfig对象", description="系统配置表")
public class SystemConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "uid", type = IdType.UUID)
    private String uid;

    @ApiModelProperty(value = "七牛云公钥")
    private String qiNiuAccessKey;

    @ApiModelProperty(value = "七牛云私钥")
    private String qiNiuSecretKey;

    @ApiModelProperty(value = "邮箱账号")
    private String email;

    @ApiModelProperty(value = "邮箱发件人用户名")
    private String emailUserName;

    @ApiModelProperty(value = "邮箱密码")
    private String emailPassword;

    @ApiModelProperty(value = "SMTP地址")
    private String smtpAddress;

    @ApiModelProperty(value = "SMTP端口")
    private String smtpPort;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "七牛云上传空间")
    private String qiNiuBucket;

    @ApiModelProperty(value = "七牛云存储区域 华东（z0），华北(z1)，华南(z2)，北美(na0)，东南亚(as0)")
    private String qiNiuArea;

    @ApiModelProperty(value = "图片是否上传七牛云 (0:否， 1：是)")
    private String uploadQiNiu;

    @ApiModelProperty(value = "图片是否上传本地存储 (0:否， 1：是)")
    private String uploadLocal;

    @ApiModelProperty(value = "图片显示优先级（ 1 展示 七牛云,  0 本地）")
    private String picturePriority;

    @ApiModelProperty(value = "七牛云域名前缀：http://img.mianduijifeng.top")
    private String qiNiuPictureBaseUrl;

    @ApiModelProperty(value = "本地服务器域名前缀：http://localhost:8600")
    private String localPictureBaseUrl;

    @ApiModelProperty(value = "是否开启邮件通知(0:否， 1:是)")
    private String startEmailNotification;

    @ApiModelProperty(value = "编辑器模式，(0：富文本编辑器CKEditor，1：markdown编辑器Veditor)")
    private String editorModel;

    @ApiModelProperty(value = "主题颜色")
    private String themeColor;

    @ApiModelProperty(value = "Minio远程连接地址")
    private String minioEndPoint;

    @ApiModelProperty(value = "Minio公钥")
    private String minioAccessKey;

    @ApiModelProperty(value = "Minio私钥")
    private String minioSecretKey;

    @ApiModelProperty(value = "Minio桶")
    private String minioBucket;

    @ApiModelProperty(value = "图片是否上传Minio (0:否， 1：是)")
    private String uploadMinio;

    @ApiModelProperty(value = "Minio服务器文件域名前缀")
    private String minioPictureBaseUrl;

    @ApiModelProperty(value = "是否开启仪表盘通知(0:否， 1:是)")
    private String openDashboardNotification;

    @ApiModelProperty(value = "仪表盘通知【用于首次登录弹框】")
    private String dashboardNotification;


}
